#include <stdio.h>

class foo
{
public:
    void lish()
    {
        printf("lish\n");
    }

};

class ben
{
public:
    int a;

    void dan()
    {
        a = 10;
        printf("dan\n");
    }

};

int main(int argc, char **argv)
{
    foo *f = NULL;
    f->lish();  //no problem

    ben *b = NULL;
    b->dan();  //core dump

	return 0;
}
